//
//  ByAccountControl.m
//  recordworktool_ios
//
//  Created by mc on 2017/12/11.
//  Copyright © 2017年 ZhangZhanbin. All rights reserved.
//

#import "ByAccountControl.h"

@implementation ByAccountControl

- (id)init{
    self = [super init];
    if (self) {
        
        self.layer.cornerRadius = 22.5;
        self.layer.borderWidth = 1;
        self.layer.borderColor = BY_THEME_COLOR.CGColor;
        
        self.imageView = [[UIImageView alloc] init];
        [self addSubview:self.imageView];
        [self.imageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.equalTo(self.mas_centerX).offset(-5);
            make.centerY.equalTo(self).offset(0);
            make.size.mas_equalTo(CGSizeMake(25, 25));
        }];

        
        
        UILabel *titleLabel = [[UILabel alloc] init];
        [self addSubview:titleLabel];
        [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.imageView.mas_right).offset(10);
            make.centerY.equalTo(self).offset(0);
            make.size.mas_equalTo(CGSizeMake(50, 20));
        }];
        titleLabel.font = FONT(16);
        titleLabel.textColor = BY_THEME_COLOR;
        titleLabel.text = @"通过";
        self.titleLabel = titleLabel;
        
    }
    return self;
}

@end
